package com.sibu.yx.promotion.common.constants;

import com.doubo.common.exception.DataBaseOperateException;

/**
 * 应用常量
 */
public class AppConstants {

    public static final String HEAD_TOKEN = "hg2b-promotion-token";
    public static final String HEAD_UID = "yx-promotion-uid";

    public static final String SESSION_CACHE_KEY = "higo:promotion:admin:session:";

    public static final String BASE_REDIS_PRE_KEY ="yx-promotion";

    /**
     * 数据访问异常
     */
    public static final DataBaseOperateException DATA_BASE_OPERATE_EXCEPTION = new DataBaseOperateException();

    public static final String CURRENT_USER = "user";

    /**
     * 系统不安全字符
     */
    public static final String UNSAFE_LETTERS_REG = "\\||\\$|%|'|\'|<|>|\\\\|&lt;&gt;|&quot;|&#39;|(\\s+or\\s+)|(\\s+and\\s+)";


    public static final int MAX_LOG_DATA_SIZE = 20;

    public static final int MAX_REQUEST_DATA_SIZE = 2000;

    /**
     * EXCEL_MAX_ROWS 导出数据 最大上限
     */
    public static final Long EXCEL_MAX_ROWS = 50000L;

    /**
     * 降序
     */
    public static final String SORT_DESC = "desc";
    /**
     * 升序
     */
    public static final String SORT_ASC = "asc";

    public static final String IMAGE_SUFFIX="image/jpg;image/png;image/jpeg";

    /**
     * 生成缩略图临时图片路径
     */

    public static final String DEFAULT_DELIMITER_STRING = ",";

    public static final String DEFAULT_VERSION = "1.0";


    /**
     * 导出excel每页最大数量
     */
    public static final   int MAX_EXPORT_SIZE_PER_PAGE = 500;

    /**
     * 导出excel每页最大数量
     */
    public static final  int MAX_EXPORT_SIZE = 50000;

    /**
     * 万能验证码
     */
    public static final String UNIVERSAL_SMS_VERSIFY_CODE = "102468";


    /**
     * 顶级用户ID
     */
    public static final String TOP_COMPANY_USER_ID = "2";

    /**
     * 逗号
     */
    public static final String COMMA=",";

    /**
     * 转采购订单常量
     */
    public static final String GUID_EMPTY = "00000000-0000-0000-0000-000000000000";

}
